import React, {Component} from 'react'
import ReactDOM from 'react-dom'
import ajax from  './config/ajax'
class App extends Component {

    handleClick(){
        ajax()
    }
    render() {
        return (
            <div>
                <div className="container">
                    <div className="row">
                        <div className="col-xl-12">
                            <button onClick={this.handleClick}>获取接口数据</button>
                        </div>
                    </div>
                </div>
            </div>
        )
    }
}
ReactDOM.render(
    <App></App>,
    document.getElementById('root'),
)
